package com.zxl.grocery.microservice.auth.common.constatns;

/**
 * @Author: zxl
 * @Description:
 * @Date: Created in 19:30 2017/10/12
 * @Modified By:
 */
public class CommonConstants {
    public static final Integer EX_TOKEN_ERROR_CODE = 40101;// token错误异常
    public static final Integer EX_USER_INVALID_CODE = 40102;// 找不到用户异常
    public static final Integer EX_CLIENT_INVALID_CODE = 40131;// 客户端token异常
    public static final Integer EX_CLIENT_FORBIDDEN_CODE = 40331;//客户端没有权限异常
    public static final Integer EX_OTHER_CODE = 500;// 非自定义异常
    public static final String CONTEXT_KEY_USER_ID = "currentUserId";
    public static final String CONTEXT_KEY_USERNAME = "currentUserName";
    public static final String CONTEXT_KEY_USER_NAME = "currentUser";
    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";
    public static final String JWT_KEY_USER_ID = "userId";// jwt常量
    public static final String JWT_KEY_NAME = "name";
    public final static String RESOURCE_TYPE_MENU = "menu";
    public final static String RESOURCE_TYPE_BTN = "button";

}

